# The Dream Code
The Dream Code is a short script intended to be used as an Easter egg on websites (happy Easter, incidentally) in a similar manner to the popular [Konami code](https://en.wikipedia.org/wiki/Konami_Code). However, instead of being based on the famous code from Contra, this script is based on the set of codes from the game [Erika to Satoru no Yume Bōken](https://en.wikipedia.org/wiki/Erika_to_Satoru_no_Yume_Bōken) (Erika and Satoru's Dream Adventure, hence the name of this script) which allow the determined player to view messages left by one of its developers.

## How to Use
If JavaScript is enabled in your web browser, you should be able to test The Dream Code on the included demo.html file, which also documents how the various events are triggered. They can be added to standard event handlers using the event name, such as dreamcodeGray, as the first parameter in `addEventListener()`.

## Credits
Thanks to [The Cutting Room Floor](https://tcrf.net/) for providing [instructions](https://tcrf.net/Erika_to_Satoru_no_Yume_Bouken) on how to achieve this in the original game.

## License
All included documentation and scripts of The Dream Code are available under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html).

Copyright © 2018, 2024 UltrasonicMadness.
